package com.google.code.jgchart;

public abstract class ChartType implements UrlQuery {

	private static final String PARAM = "cht=";

	private static class ChartTypeImpl extends ChartType {

		private String query;

		private ChartTypeImpl(String query) {
			this.query = query;
		}

		public String[] getQuery() {
			return new String[]{query};
		}
	}

	public static final ChartType LINE_CHART = new ChartTypeImpl(PARAM + "lc");

	public static final ChartType LINE_XY_CHART = new ChartTypeImpl(PARAM + "lxy");

	public static final ChartType SPARKLINE_CHART = new ChartTypeImpl(PARAM
			+ "ls");

	public static final ChartType PIE_CHART = new ChartTypeImpl(PARAM + "p");
}
